<!DOCTYPE html>
<#assign base=request.contextPath />
<html>
	<head>
		<meta charset="UTF-8">
		<title>问答</title>
		<link rel="stylesheet" type="text/css" href="${base}/statics/font1/iconfont.css"/>
		<link rel="stylesheet" type="text/css" href="${base}/statics/css1/base-pc.css"/>
		<link rel="stylesheet" type="text/css" href="${base}/statics/css1/xcommon.css"/>

		<script src="${base}/statics/js1/jquery-1.11.3.min.js"></script>
		<script src="${base}/statics/layer1/layer.js"></script>
		<script src="${base}/statics/js1/jquery.SuperSlide.2.1.js"></script>
		
	</head>
	<body>
		<header>
			<div class="header">
			<div class="topbar">
			   <div class="top inner ">欢迎您来到亿矿云百科！</div>
			</div>
			<div class="logobar inner inwhite clearfix">
			<h1 class="logo">
				<a href="/"  target="_blank"><img src="${base}/statics/images1/logo.png"/></a>
			</h1>
			<div class="right clearfix">
				<div class="l clearfix">
					<div class="search">
						<input type="text" class="txtSearch bz" placeholder="请输入您要搜索的内容..." />
						<a href="javascript:;" class="searchBtn">进入词条</a>
					</div>
					<a href="javascript:;" class="sBtn">搜索词条</a>
					<div class="reglogin">
						<a href="/login" target="_blank">登录</a>
						<i>|</i>
						<a href="/api/users/reg" target="_blank">注册</a>
					</div>
				</div>
				
			</div>	
			</div>
			<!-- 导航 S -->
			<div class="navBar">
				<ul class="nav clearfix">
					<li id="m1" class="m">
						<h3><a target="_blank" href="/api/first">首页</a></h3>
					</li>
			
					<li id="m2" class="m ">
						<h3>
							<a target="_blank" href="/api/product/catag/0">产品</a>
							<ul class="sub">
								<#if fenlei??&& (fenlei?size > 0)>
									<#list fenlei as item>
										<#if item_index lt 10>
											<li><a href="${item.link}">${item.name}</a></li>
										</#if>
									</#list>
								</#if>
							</ul>
						</h3>
					</li>
			
					<li id="m3" class="m">
						<h3><a target="_blank" href="/api/pinpai/first">品牌</a></h3>
						
					</li>
			
					<li id="m4" class="m">
						<h3><a target="_blank" href="/api/renwu/first">企业家</a></h3>
						
					</li>
			
					<li id="m5" class="m">
						<h3><a target="_blank" href="/api/jishu/first">技术</a></h3>
						
					</li>
			
					<li id="m6" class="m">
						<h3><a target="_blank" href="/api/wenda/first">问答</a></h3>
					</li>
			
				</ul>
			</div>
			<script type="text/javascript"> jQuery(".nav").slide({ type:"menu",  titCell:".m", targetCell:".sub", effect:"slideDown", delayTime:300, triggerTime:100,returnDefault:true  });</script>
			<!-- 导航 E -->
			</div>
		</header>
		<div class="tbar inner">
			您当前的位置：<a href="/api/first">首页</a> > <a href="/api/jishu/first">技术 </a>
		</div>
		<div class="requestcon inner clearfix">
			<div class="left">
				<ul class="rul">
					<#if wenda??&& (wenda?size > 0)>
						<#list wenda as item>
							<li  class="clearfix">
								<a href="${item.link}" target="_blank">
									<div class="ibox">
										<#if item.img??>
											<div class="ibox"><img src="${item.img}" alt="${item.name}" /></div>
											<#else>
												<div class="ibox"><img src="${base}/statics/images1/p1.jpg" alt="${item.name}" /></div>
										</#if>
									</div>
								</a>
								<a href="${item.link}"  target="_blank">
									<div class="lr bz">
										<h2 class="clearfix">
											<span class="l nw"><i>问：</i>${item.name}</span>

										</h2>
										<div class="dbox clearfix">
											<span class="r">更新日期：${item.time}</span>
										</div>
										<div class="detail">
									<span class="l nw2"><i>答：</i>
											<#if item.content?length gt 77>
												${item.content?substring(0,70)}...
												<#else>${item.content!}
											</#if>
											 <span class="m">【详情】</span></span>
										</div>
									</div>
								</a>
							</li>
						</#list>
					</#if>

				</ul>
				<!--<div class="pagation">
					分页
				</div>-->
			</div>
			<div class="right">
				<div class="t">
					<i></i>相关技术
				</div>
				<ul class="rtlist">
					<#if wenda??&& (wenda?size > 0)>
						<#list wenda?sort_by("llcs") as item>
							<#if item_index lt 12>
								<li>
									<a href="${item.link}">
										<div class="ibox">
											<#if item.img??>
												<div class="ibox"><img src="${item.img}" alt="${item.name}" /></div>
												<#else>
													<div class="ibox"><img src="${base}/statics/images1/p1.jpg" alt="${item.name}" /></div>
											</#if>

										</div>
									</a>
									<a href="${item.link}">
										<h2 class="rb nw2">${item.name}
										</h2>
									</a>
								</li>

							</#if>
						</#list>
					</#if>
				</ul>
			</div>
		</div>
	    <footer>
			<div class="footer">
				<p>Copyright 2011- 2018 山东中煤集体神华科技 Inc All Rights Reserved. 鲁ICP备2125414号-1 </p>
				<p>地址：山东济宁开源路11号 </p>
				<p>客服电话：400-0733-010 Email：service@yike.com</p>
			</div>
        </footer>
	</body>
	<script>
        $(".searchBtn").click(function (){
            findcitiao();
        });
        $(".sBtn").click(function (){
            findcitiao();
        });
        function findcitiao() {
            var param =  $(".txtSearch") .val();
            param =param.replace(/[^\u4E00-\u9FA5]/g,'');
            if(param==undefined||param==null||param==""){
                alert("请输入查询的词条!!")
            }
            window.location.href = "/api/sreach/getdata?param=" +encodeURIComponent(param);
        }
	</script>
</html>
